import { ViewComponent } from './components'
import { Input } from '@tarojs/components'
import { generateUniqueId } from '../utils/key'

export class InputView implements ViewComponent {
  constructor(private placeholder: string) {}
  render() {
    return <Input id={generateUniqueId('id-')} placeholder={this.placeholder} />
  }
}
